import { Component, Input } from '@angular/core';
import { InvoiceInformation } from 'src/app/@core/data/customer';

@Component({
  selector: 'app-add-customer-invoice',
  templateUrl: './add-customer-invoice.component.html',
  styleUrls: ['./add-customer-invoice.component.scss']
})
export class AddCustomerInvoiceComponent {
  @Input() data: any
  form:InvoiceInformation={
    invoiceInformationId: null,
    customerInvoiceInformationId: null,
    invoiceHeader: '',
    taxNumber: '',
    address: '',
    phone: '',
    depositBank: '',
    bankAccount: '',
    isDefault: false,
    createTime: null,
  }
  constructor() { }
  ngOnInit(): void {
    if (this.data.rowItem) {
      this.form = JSON.parse(JSON.stringify(this.data.rowItem));
    }
  }
}
